package com.hst.capacity.infra.persistence.jpa.invoice;

import com.hst.capacity.domain.model.entity.invoice.InvoiceEntity;
import com.hst.capacity.domain.model.entity.order.pool.OrderPoolEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

public interface InvoiceRepository extends JpaRepository<InvoiceEntity, String>, JpaSpecificationExecutor<InvoiceEntity> {

    InvoiceEntity findByIdInvoice(String idInvoice);

    InvoiceEntity findByIdOrder(String idOrder);

    InvoiceEntity findByExternalOrderId(String idExternalOrder);

}
